home *** CD-ROM | disk | FTP | other *** search
/ Archive Magazine CD 1995 / Archive Magazine CD 1995.iso / discs / prog_disc / volume_2 / issue_06 / scott / text / countprb_t next >
Encoding:
Text File  |  1989-02-11  |  879 b   |  20 lines

  1.             PROBLEM WITH SYSTEM COMMAND FOR COUNT OPERATION
  2.  
  3.                               David Scott
  4.  
  5.  
  6. The OS_FSControl (&29) system command for filing system control with  R0 
  7. set  to 28 (page 262 of the Programmers Reference Manual) has a  problem 
  8. which is not apparent from the description given.
  9.  
  10. If the call is used in a program to obtain values for use by the program 
  11. it is not possible to do this without the information also being printed 
  12. on  the screen.  This is because bit 8 of the action mask in R3 must  be 
  13. set in order to get the correct values returned in R2 and R3.
  14.  
  15. The  way round this problem is to turn the screen output off using VDU21 
  16. before  making  the system call and then to turn it back  on  afterwards 
  17. with  VDU6.  If  a printer is connected then this will also have  to  be 
  18. temporarily disconnected with VDU3 before and VDU2 after the call.
  19.  
  20.